{{template "layout.html" .}}

{{define "content"}}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-body text-center">
                    <div class="mb-4">
                        <i class="fas fa-exclamation-triangle text-warning" style="font-size: 4rem;" aria-hidden="true"></i>
                    </div>
                    <h2 class="card-title mb-4">发生错误</h2>
                    <p class="card-text mb-4">{{.Error}}</p>
                    <div class="d-flex justify-content-center gap-3">
                        <button class="btn btn-secondary" onclick="history.back()" aria-label="返回上一页">
                            <i class="fas fa-arrow-left" aria-hidden="true"></i> 返回上一页
                        </button>
                        <a href="/" class="btn btn-primary" aria-label="返回首页">
                            <i class="fas fa-home" aria-hidden="true"></i> 返回首页
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{{end}} 